<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="zh">
 <head>
  <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
  <meta content="2020-01-10T06:18:10.521000000" name="created"/>
  <meta content="2023-12-12T09:31:22" name="changed" translator="gocpicnic"/>
  <meta content="text/html; charset=utf-8" http-equiv="content-type"/>
  <meta content="zh" http-equiv="Content-Language"/>
  <title>
   v2.0 raw
  </title>
  <link href="../../style.css" rel="stylesheet" type="text/css"/>
 </head>
 <body>
  <p>
   <b>
    上一节:
   </b>
   <a href="mem-poke.html">
    记忆戳
   </a>
  </p>
  <h1>
   v2.0 raw
  </h1>
  <div class="maindiv">
   <p>
    <!-- The file format used for image files is intentionally simple; this permits you to write a program, such as an assembler, that generates memory images that can then be loaded. For example if we had a memory as below: -->
    图像文件使用的文件格式故意简单； 这允许您编写一个程序（例如汇编程序）来生成可以加载的内存映像。 例如，如果我们有如下的记忆：
   </p>
   <p align="center">
    <img alt="#########" class="notscal" src="../../../../img-guide/memraw.png"/>
   </p>
   <p>
    <!-- and then all the values are at zero and the resultant file will be the following. -->
    然后所有值都为零，生成的文件如下所示。
   </p>
   <blockquote>
    <pre>v2.0 raw
12 22 45 67 12*80  23 a2 bb
ce 4f 6a cc 45 7*cc 12 24</pre>
   </blockquote>
   <p>
    <!-- The first line identifies the file format used (currently, there is only one file format recognized "raw"). Subsequent values list the values in hexadecimal, starting from address 0; you can place several such values on the same line. If the data dimension of the file is smaller than the space in memory the remaining cells will not be changed. -->
    第一行标识所使用的文件格式（当前，只有一种文件格式被识别为“原始”）。 后续值以十六进制形式列出值，从地址 0 开始； 您可以将多个这样的值放在同一行上。 如果文件的数据尺寸小于内存空间，则其余单元将不会更改。
   </p>
   <p>
    <!-- The image file can use run-length encoding; for example, rather than list the value <tt>80</tt> twelve times in a row, the file can include <tt>12*80</tt>. Notice than the number of repetitions is written in base 10. Files produced by Logisim will use run-length encoding for runs of at least four values. -->
    图像文件可以使用游程编码； 例如，文件可以包含
    <tt>
     12*80
    </tt>
    ，而不是连续列出值
    <tt>
     80
    </tt>
    十二次。 请注意，重复次数以 10 为基数写入。Logisim 生成的文件将对至少四个值的游程使用游程长度编码。
   </p>
   <p>
    <!-- You can place comments into the file by using the '#' symbol. All characters in the line from the '#' symbol will be ignored by Logisim. -->
    您可以使用“#”符号将注释添加到文件中。 Logisim-evolution 将忽略“#”符号行中的所有字符。
   </p>
   <p>
    <!-- If the length of the data set in the file is shorter than the memory space the remaining cells will be initialized to 0 for ROM and RAM according to the parameters in <a href="../opts/index.html">Project options</a>, to 0 or randomly. -->
    如果文件中数据集的长度小于内存空间，则根据
    <a href="../opts/index.html">
     项目选项中的参数，ROM和RAM的剩余单元将被初始化为0
    </a>
    ，到0或随机。
   </p>
   <p>
    <!-- If the width of the memory word in bits is smaller than the width of the data words in the file. Excessively large bits will be ignored. -->
    如果内存字的位宽小于文件中数据字的宽度。 过大的位将被忽略。
   </p>
   <p align="center">
    nter&gt;
    <img alt="#########" height="130" src="../../../../img-guide/memraw1.png" width='480"'/>
   </p>
   <!-- <strong>Next:</strong> <a href="mem-menu.html">Pop-up menus and files</a>. -->
   <strong>
    下一节:
   </strong>
   <a href="mem-v3word.html">
    文件v3字
   </a>
   .
   <p>
   </p>
   <p>
   </p>
   <p>
   </p>
  </div>
 </body>
</html>
